package cn.rkylin.oms.salespromotion.rules.dao;

import java.util.List;

import cn.rkylin.oms.salespromotion.rules.domain.SalesPromotionGift;

public interface ISalesPromotionGiftDAO {
    /**
     * 根据规则ID删除赠品
     * @param ruleId 规则ID
     * @return
     */
    int deleteByRuleId(String ruleId) throws Exception;

    /**
     * 新增赠品
     * @param record 赠品详情
     * @return
     */
    int insert(SalesPromotionGift record) throws Exception;

    /**
     * 根据规则ID查询赠品
     * @param ruleId 规则ID
     * @return
     */
    List<SalesPromotionGift> selectByRuleId(String ruleId) throws Exception;
}